﻿<UserControl x:Class="Songhay.Silverlight.BiggestBox.IndexPart.Views.UserControls.ContextMenuSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
    xmlns:m="clr-namespace:Songhay.Silverlight.BiggestBox.IndexPart.ViewModels"
    Tag="Context menu support of Silverlight 4."
    Width="512" Height="300">
    <UserControl.Resources>
        <m:ContextMenuSampleViewModel x:Key="ContextMenuSampleViewModelDataSource" d:IsDataSource="True" />
    </UserControl.Resources>
    <StackPanel DataContext="{StaticResource ContextMenuSampleViewModelDataSource}">
        <TextBlock FontSize="12" Height="25"
            Padding="4"
            TextAlignment="Center"
            TextWrapping="Wrap">Right-Click in each of the regions below to see a different context menu.</TextBlock>
        <StackPanel Height="250" Orientation="Horizontal">
            <Border Background="Bisque" Width="256">
                <toolkit:ContextMenuService.ContextMenu>
                    <toolkit:ContextMenu>
                        <toolkit:MenuItem Header="Command One" Command="{Binding ClientCommand}" CommandParameter="cmd1" />
                        <toolkit:MenuItem Header="Command Two" Command="{Binding ClientCommand}" CommandParameter="cmd2"/>
                        <toolkit:Separator />
                        <toolkit:MenuItem Header="Command Three" Command="{Binding ClientCommand}" CommandParameter="cmd3" />
                    </toolkit:ContextMenu>
                </toolkit:ContextMenuService.ContextMenu>
            </Border>
            <Border Background="Beige" Width="256">
                <!--<toolkit:ContextMenuService.ContextMenu>
                    <toolkit:ContextMenu>
                        <toolkit:MenuItem Header="Command Four" Command="{Binding ClientCommand}" CommandParameter="cmd4" />
                        <toolkit:Separator />
                        <toolkit:MenuItem Header="Command Five" Command="{Binding ClientCommand}" CommandParameter="cmd5" />
                        <toolkit:MenuItem Header="Command Six" Command="{Binding ClientCommand}" CommandParameter="cmd6" />
                        <toolkit:MenuItem Header="Command Seven" Command="{Binding ClientCommand}" CommandParameter="cmd7" />
                    </toolkit:ContextMenu>
                </toolkit:ContextMenuService.ContextMenu>-->
            </Border>
        </StackPanel>
        <TextBlock
            FontSize="12" Height="25"
            Padding="4"
            Text="{Binding FooterText}"
            TextAlignment="Center"
            TextWrapping="Wrap" />
    </StackPanel>
</UserControl>
